<?php

class Application_Form_Problem extends Asd_Form
{

    public function init()
    {
        $this->setName('problem_form');
        parent::init();
        
        $this->setAttrib('enctype', 'multipart/form-data');
        $this->setMethod("POST");
        
        $hidden = new Zend_Form_Element_Hidden('id');
        $this->addElement($hidden);
        
        
        $file = new Zend_Form_Element_File('file');
        $file->setLabel('Файлды тандаңыз:')
                ->setRequired(true)
                ->addValidator('Extension', false, 'cpp,c,cs,java,pas')
                ->addValidator('NotEmpty');
        $this->addElement($file);
        
        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setLabel('Жиберүү')
                ->setAttrib('class', 'button_big');
        $this->addElement($submit);
        
    }
}

